//
// Created by xuyf7 on 2021/9/17.
//

#ifndef NDKPLAYER_JNICALLBACKHELP_H
#define NDKPLAYER_JNICALLBACKHELP_H
#include <jni.h>
#include "util.h"


class JNICallbackHelp {
private:
    JavaVM *vm = 0;
    JNIEnv * jniEnv = 0;
    jobject obj;
    jmethodID  jmethodId;
public:
    JNICallbackHelp(JavaVM *vm,JNIEnv * jniEnv, jobject obj);

    virtual ~JNICallbackHelp();

    void onPrepared(int thread_mode);
};


#endif //NDKPLAYER_JNICALLBACKHELP_H
